package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 攻略点评的评论类
 */

@Getter@Setter
@JsonIgnoreProperties("handler")
public class StrategySunComment extends BaseDomain{

    private User user;//评论用户
    @JsonFormat(pattern = "yyyy-MM-dd",timezone ="GMT+8" )
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;//创建时间

    private String content;//内容

    private StrategyComment strategyComment;//所评论的点评

    private Integer state=1;//状态

    private int likeNum;//点赞数

    private List<StrategyReplyComment> replyComments =new ArrayList<>();

}